package com.shilei.flyweight;

/**
 * @description: 享源    类比 池的概念
 * @author: 81271
 * @date: 2020-04-18 12:17
 */
public class Main1 {
    public static void main(String[] args) {
        String str1 = "abc";
        String str2 = "abc";
        String str3 = new String("abc");
        String str4 = new String("abc");

        System.out.println(str1 == str2);
        System.out.println(str1 == str3);
        System.out.println(str3 == str4);
        System.out.println(str1.equals(str3));
    }
}
